import Vue from 'vue';
import Vuex from 'vuex';
import app from './modules/app';
import auth from './modules/auth';
import user from './modules/user'
import getters from './getters';
Vue.use(Vuex);
import createPersistedState from 'vuex-persistedstate'

const store = new Vuex.Store({
  modules: {
    app,
    auth,
    user,
  },
  getters,
  //默认存储到localStorage
  // plugins:[createPersistedState()]
});
export default store;
